﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pagemaitre.Master" AutoEventWireup="true" CodeBehind="CréationAccount.aspx.cs" Inherits="Tp2.CréationAccount" %>
<asp:Content ID="Content2" ContentPlaceHolderID="head" runat="server">
    <link rel="stylesheet" media="screen" type="text/css" href="Ressource/cssProfil.css" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contenuPage" runat="server">
        <div>
            <h1>Inscription</h1>
            <div>
                <label for="txtNom">Votre nom :</label>
                <input type="text" id="txtNom" name="txtNom" runat="server" class="Profil"/>
                <asp:RequiredFieldValidator ID="ValidationNomChamps" runat="server" 
                    ControlToValidate="txtNom" ErrorMessage="Nom Obligatoire" ForeColor="#CC0000">*</asp:RequiredFieldValidator>
            </div>
            <div>
                <label for="txtPrenom">Votre prénom :</label>
                <input type="text" id="txtPrenom" name="txtPrenom" runat="server" class="Profil"/>
                <asp:RequiredFieldValidator ID="ValidationPrenom" runat="server" 
                    ControlToValidate="txtPrenom" ErrorMessage="Prénom obligatoire" 
                    ForeColor="#CC0000">*</asp:RequiredFieldValidator>
            </div>
            <div>
                <label for="txtadresse">Votre addresse :</label>
                <input type="text" id="txtadresse" name="txtadresse" runat="server" class="Profil"/>
                <asp:RequiredFieldValidator ID="ValidationAdresse" runat="server" 
                    ControlToValidate="txtadresse" ErrorMessage="Adresse Obligatoire" 
                    ForeColor="#CC0000">*</asp:RequiredFieldValidator>
            </div>
            <div>
                <label for="txtVille">Votre ville :</label>
                <input type="text" id="txtVille" name="txtVille" runat="server" class="Profil"/>
                <asp:RequiredFieldValidator ID="ValidationVille" runat="server" 
                    ControlToValidate="txtVille" ErrorMessage="Ville Obligatoire" 
                    ForeColor="#CC0000">*</asp:RequiredFieldValidator>
            </div>
            <div>
                <label for="selectProvince">Votre province :</label>
                <select id="selectProvince" runat="server" class="Profil">
                    <option value="Choix">Choississez votre Province</option>
			        <option value="quebec">Québec</option>
			        <option value="ontario">Ontario</option>
			        <option value="nouveaubrunswick">Nouveau-Brunswick</option>
                    <option value="nouvelleEcosse">Nouvelle-Écosse</option>
                    <option value="IlePrinceEdouard">Île-du-Prince-Édouard</option>
                    <option value="TerreNeuve">Terre Neuve</option>
                    <option value="Manitoba">Manitoba</option>
                    <option value="Alberta">Alberta</option>
                    <option value="Sakatchewan">Sakatchewan</option>
                    <option value="ColombieBritannique">Colombie-Britannique</option>
                    <option value="Autres">Autres</option>
		        </select>
                <asp:CustomValidator ID="validationProvince" runat="server" 
                    ClientValidationFunction="ValidationProvince" 
                    ControlToValidate="selectProvince" 
                    ForeColor="#CC0000" onservervalidate="ValidationProvince">*</asp:CustomValidator>
            </div>
            <div>
                <label for="txtCode">Votre code postal :</label>
                <input type="text" id="txtCode" name="txtCode" runat="server" class="Profil" 
                    maxlength="7"/><asp:RegularExpressionValidator 
                    ID="ValidationCodePostal1" runat="server" ControlToValidate="txtCode" 
                    ErrorMessage="Code postal doit être sous le format X0X 0X0 " 
                    ForeColor="#CC0000" 
                    ValidationExpression="[A-Za-z][0-9][A-Za-z][ ][0-9][A-Za-z][0-9]?" 
                    Display="Dynamic">*</asp:RegularExpressionValidator>
                <asp:RequiredFieldValidator ID="ValidationCodePostal2" runat="server" 
                    ControlToValidate="txtCode" ErrorMessage="Code postal Obligatoire" 
                    ForeColor="#CC0000" Display="Dynamic">*</asp:RequiredFieldValidator>
&nbsp;</div>
            <div>
                <label for="txtlogin">Nom d'utilisateur : </label>
                <input type="text" id="txtlogin" name="txtlogin" runat="server" class="Profil"/>&nbsp;<asp:CustomValidator 
                    ID="CustomValidatorNomUtil" runat="server" ForeColor="#CC0000" 
                    onservervalidate="CustomValidatorNomUtil_ServerValidate">*</asp:CustomValidator>
            </div>
            <div>
                <label for="txtMotDePasse">Mot de passe : </label>
                <input type="password" id="txtMotDePasse" name="txtMotDePasse" runat="server" class="Profil"/>&nbsp;<asp:CustomValidator 
                    ID="CustomValidatorMotDePasse" runat="server" ForeColor="#CC0000" 
                    onservervalidate="CustomValidatorMotDePasse_ServerValidate">*</asp:CustomValidator>
            </div>
            <div>
                <label for="txtMotDePasseRepeat">Confirmer votre <br />mot de passe:</label>
                <input type="password" id="txtMotDePasseRepeat" name="txtMotDePasseRepeat" runat="server" class="Profil"/>
                <asp:RequiredFieldValidator ID="ValidationMotDePasseRepeat" runat="server" 
                    ControlToValidate="txtMotDePasseRepeat" ErrorMessage="Confirmation mot de passe obligatoire" 
                    ForeColor="#CC0000">*</asp:RequiredFieldValidator>
            </div>
            <div>
                <label for="txtEmail">Courriel : </label>
                <input id="txtEmail" name="txtEmail" runat="server" class="Profil"/>
                <asp:RegularExpressionValidator ID="ValidationCourriel1" runat="server" 
                    ControlToValidate="txtEmail" 
                    ErrorMessage="Courriel doit être sous le format allo@allo.ca " 
                    ForeColor="#CC0000" 
                    ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                    Display="Dynamic">*</asp:RegularExpressionValidator>
                <asp:CustomValidator ID="CustomValidatorCourriel" runat="server" 
                    Display="Dynamic" ForeColor="#CC0000" 
                    onservervalidate="CustomValidatorCourriel_ServerValidate">*</asp:CustomValidator>
            </div>
            <div>
                <input type="submit" value="Soumettre" />
                <asp:ValidationSummary ID="ListValidation" runat="server" DisplayMode="List" 
                    ForeColor="#CC0000" Height="42px" />
            </div>
            <div id="AutreErreur">
                <span id="autreErreur" runat="server"></span>
            </div>
        </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="javascriptContent" runat="server">
<div>
    <span id="titrePage" title="btnCreationAccount" ></span>
</div>
</asp:Content>
